<!DOCTYPE html >
<!--  Website template by freewebsitetemplates.com  -->
<html>
  <%@ page import="java.sql.*" %>
<head>
	<title>Cs</title>
	<meta  charset=iso-8859-1" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<!--[if IE 6]>
		<link href="css/ie6.css" rel="stylesheet" type="text/css" />
	<![endif]-->
	<!--[if IE 7]>
        <link href="css/ie7.css" rel="stylesheet" type="text/css" />  
	<![endif]-->
	<script type="text/javascript">

function validateForm()
{
var x=document.forms["form1"]["search"].value
if (x==null || x=="")
  {
  alert("Search Query Enter");
  return false;
  }
}



</script>
 <style type=text/css>
    #divStayTopLeft{
        height:900px;
        overflow:scroll
        }
    table.T1 {
        text-align:center;
        font-weight:bold;
        float:right;
        width:900px;
        }
 
    .highlighted {
        background-color:#ffffcc;
        border:1px solid black;
        }
 
</style>
</head>

<body>

	  
			<div id="header">
	           		<a href="index.html" id="logo"><img src="images/logo.gif" width="310" height="72" alt="" title=""></a>
					<ul class="navigation">
						<li ><a href="index.html">Home</a></li>
						<li class="active"><a href="provider.jsp">Upload</a></li>
						
						
						<li ><a href="provider3.jsp">Download</a></li>
						<li><a href="index.html">Logout</a></li>
						
					</ul>
			</div>
			
			<div id="body">
			
			       <div id="content">
				         <% Object label=null,success=null;
				         label=request.getParameter("label");
                      if(label==null){
                    	  success=request.getParameter("success");
                    	  
                      %>
						 
						 <div class="search">
						
							</div>
				        <div class="content7">
						
						         <% if(success==null){
							 %>
						  <form ENCTYPE="multipart/form-data" name="form1" method="post" action="uploadandstore">
                      <table width="404" height="150">
                     
                        <tr>
                          <td height="30">You should be upload text file only.</td>
                          <td width="217">&nbsp;</td>
                        </tr>
                        
                        <tr>
                          <td height="35"><h2><u>File:</u></h2></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="175" height="24"><h4>Upload File</h4></td>
                          <td><label for="search"></label>
                            <input type="file"  style="width:180px; height:30px "  name="search" id="search" /></td>
                        </tr>
                         <tr>
                           <td height="49" align="center" valign="middle"><input style="width:100px; height:30px;" type="submit" name="upload" id="upload" value="Submit" /></td>
                           <td align="center" valign="middle"><input style="width:100px; height:30px;" type="reset" name="reset" id="reset" value="Reset" /></td>
                         </tr>
                      </table>
                      <p> 
                      </form>
								
								<%}else{%>
								<form ENCTYPE="multipart/form-data" name="form1" method="post" action="uploadandstore">
                      <table width="404" height="150">
                       
                        <tr>
                          <td height="30">Your File SuccessFully uploaded.</td>
                          <td width="217">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="35"><h2><u>File:</u></h2></td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="175" height="24"><h4>Upload File</h4></td>
                          <td><label for="search"></label>
                            <input type="file"  style="width:180px; height:30px "  name="search" id="search" /></td>
                        </tr>
                         <tr>
                           <td height="49" align="center" valign="middle"><input style="width:100px; height:30px;" type="submit" name="upload" id="upload" value="Submit" /></td>
                           <td align="center" valign="middle"><input style="width:100px; height:30px;" type="reset" name="reset" id="reset" value="Reset" /></td>
                         </tr>
                      </table>
                      <p> 
                      </form>	
							<%	}%><%} %>
				
					  
				   </div>
				   
				  
				  
			
			</div>
			
			
	
</body>
</html>